home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / ewebedit / index.cfm < prev    next >
Text File  |  1999-05-26  |  3KB  |  67 lines

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <html>
  3. <head>
  4.     <title>EKtron WYSIWYG Editor</title>
  5.     <meta name="keywords" content="ecommerce, electronic commerce, web design, software engineering,Content management,content,WYSIWYG"> 
  6.     <meta name="Author" content="EKtron, Inc.">
  7. </head>
  8. <body bgcolor="white">
  9.     <table width="625" cellpadding="0" cellspacing="0" border="0">
  10.         <tr>
  11.             <td width="113" height="35" valign="TOP" bgcolor="#639C63"><a href="http://www.ektron.com"><img src="EKlogo.gif" width=113 height=35 alt="" border=0></a></td>
  12.             <td width="505" align="CENTER" valign="BOTTOM" bgcolor="#639C63"></td>
  13.         </tr>
  14.         <tr>
  15.             <td align="CENTER" valign="TOP" bgcolor="#639C63"><img src="http://www.ektron.com/images/space.gif" width=1 height=300 alt="" border="0"></td>
  16.             <td align="CENTER" valign="TOP" >
  17.                 <cfif IsDefined("Button")>
  18.                     <cfquery datasource="editor" name="u_editor">
  19.                         update    WYSIWYG
  20.                         set        edit_title = '#form.edit_title#',
  21.                                  edit_html = '#form.TextHTML1#'
  22.                         where    edit_id = #form.edit_id# 
  23.                     </cfquery>
  24.                     <cflocation url="index.cfm">
  25.                 <cfelse>
  26.                     <cfquery datasource="editor" name="q_editor">
  27.                         select edit_id, edit_title from WYSIWYG    
  28.                     </cfquery>
  29.                     <table cellpadding="3" cellspacing="3" width="90%">
  30.                     <tr>
  31.                         <td><font size="2" face="verdana, arial, helvetica"><b>Title</b></font></td>
  32.                         <td><font size="2" face="verdana, arial, helvetica"><b>Edit</b></font></td>
  33.                         <td><font size="2" face="verdana, arial, helvetica"><b>View</b></font></td>
  34.                     </tr>
  35.                     <cfoutput query="q_editor">
  36.                         <tr>
  37.                             <td><font size="2" face="verdana, arial, helvetica">#edit_title#</font></td>
  38.                             <td width="10"><a href="edit.cfm?edit_id=#edit_id#"><font size="2" face="verdana, arial, helvetica">Edit</font></a></td>
  39.                             <td width="10"><a href="preview.cfm?edit_id=#edit_id#"><font size="2" face="verdana, arial, helvetica">View</font></a></td>
  40.                         </tr>
  41.                     </cfoutput>    
  42.                     
  43.                     <tr>
  44.                         <td>
  45.                             <ol>
  46.                                 <li><b>index.cfm</b> start page
  47.                                 <li><b>edit.cfm</b> CF code reads a record from the database into a hidden field, vbscript moves the content of the hidden field into the editor
  48.                                 <li><b>update.cfm</b> clicking the save button in edit.asp, causes vbscript to move the content out of the editor into a hidden field and post the contents of the hidden field to this page. update.asp ASP code writes the content to the database
  49.                                 <li><b>preview.cfm</b> CF code reads a record from the database and displays the html data.
  50.                                 <li><b>editor.mdb</b> Is editor.mdb an ODBC, register <b>editor</b> via the CF Administrator 
  51.                                 <li>Reveiw the Debug procedure in the ewebedit word document.
  52.                                                                 
  53.                             </ol>
  54.  
  55.                         </td>
  56.                     </tr>
  57.                 </table>
  58.                 </cfif>
  59.             </td>
  60.         </tr>
  61.         <tr>
  62.             <td bgcolor="#639C63" align="center" valign="middle"></td>
  63.             <td height="25" align="center"><a href="javascript:history.back();"><font size="2" face="verdana, arial, helvetica">Back</font></a></td>
  64.         </tr>
  65.     </table>
  66. </body>
  67. </html>